A Pen by ninakremer on CodePen.
Discover gists
| function getK (elo) { | |
| // for rank '?' (<10 games played) the K factor is 20 | |
| if (elo < 700) return 34; // rank E | |
| if (elo < 1000) return 32; // rank D | |
| if (elo < 1300) return 30; // rank C | |
| if (elo < 1600) return 28; // rank B | |
| if (elo < 1900) return 26; // rank A | |
| return 24; // rank S | |
| } |
As an example, lets assume we want to change / customize the following :
- Change the Title of the GitBash window from default [MINGW64:/directoryName] to [Tushars Gitbash (Win64)]
- Change the default prompt () to a customized prompt e.g [GitBash (Win64):> ]
The below described method only focusses on customizing the 'GitBash' prompt and NOT about customizing default 'Bash' prompt on Linux terminals. Hence this method uses the '$HOME/.config' folder for storing 'GitBash' prompt customization as per XDG Directory Specs. If you are looking for customizing default 'Bash' prompt for your Linux terminal you should be using '$HOME/.bashrc' for storing your customization and hence advised not to continue with this method.
| <# Workaround for NVIDIA's DLSS4 whitelisting | |
| -------- WHAT IS THE BACKSTORY? -------- | |
| DLSS4 was launched alongside the RTX 5000 series and comprise several new and interesting | |
| features, f.e. additional presets for Super Resolution, using a newer Transformer model. | |
| Arguably these features increase image quality significantly. To various degrees these | |
| features are also available for older RTX cards, and older games using DLSS3/2. |
[Environment variables][7] are a set of dynamic named values that can affect the way running processes will behave on a computer. The variables can be used both in scripts and on the command line. Environment variables makes it easy when certain standard directories and parameters need to be referenced but where the actual locations or names can vary from computer to computer.
This tutorial will show you a complete list of environment variables that can be used to reference standard directories and parameters in Windows 10.
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended ๐
- http://www.theeffectiveengineer.com/
- System Awareness: Before implementation, map the dependency graph and system topology. Ensure local changes preserve global invariants and do not trigger "Shotgun Surgery."
- Orthogonality: Design for independence. Ensure that changes in one module do not leak side effects into others. Minimize coupling and maximize cohesion.
- Intent-Revealing Design: Prioritize human readability and intent over machine cleverness. Use naming that explains "Why" rather than "How."
- Single Level of Abstraction (SLA): Adhere strictly to the Single Responsibility Principle (SRP). Each function must operate at a consistent level of abstraction and have exactly one reason to change.
| /* | |
| IMPORTANT: Driver 580.105.08: https://www.nvidia.com/en-us/drivers/details/257493/ | |
| > Added a new environment variable, CUDA_DISABLE_PERF_BOOST, to allow for disabling | |
| the default behavior of boosting the GPU to a higher power state when running | |
| CUDA applications. Setting this environment variable to '1' will disable the boost. | |
| CUDA perfboost bypass, distributed under MIT License | |
| -- @Ristovski |
| [Trigger] | |
| Operation = Remove | |
| Type = Package | |
| Target = * | |
| [Action] | |
| Description = Clearing cache... | |
| When = PostTransaction | |
| Exec = /home/<user>/.local/bin/tools/removehook |
EMOJI CHEAT SHEET
Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โ Got flash enabled? Click the emoji code and it will be copied to your clipboard.
People
๐